<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
    $(function() {
        mallProductRecommendListModule.init();
    });
    var mallProductRecommendListModule = (function(){

        var module = {
            init :function(){

            },
            recommendview : function(){
                window.document.location.href = 'mallProductController.do?list';
            }
        }
        return module;
    })();
</script>


<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="mallProductRecommendList" title="商品推荐" actionUrl="mallProductRecommendController.do?datagrid" idField="id"
              fit="true" queryMode="group">
   <t:dgCol title="编号" field="id" hidden="true"></t:dgCol>
   <t:dgCol title="商品id" field="productid"   width="120"></t:dgCol>
   <t:dgCol title="商品名称" field="productname" query="true"  width="120"></t:dgCol>
   <t:dgCol title="商品图片" field="imagesrc" image="true" imageSize="50,50" width="100"></t:dgCol>
   <t:dgCol title="商品类型" field="recommendtype" query="true"   width="120"  replace="每日推荐_1,拉货宝精选_2"></t:dgCol>
   <t:dgCol title="排序" field="sort"   width="120"></t:dgCol>
   <t:dgCol title="创建时间" field="createtime" formatter="yyyy-MM-dd hh:mm:ss"  width="120"></t:dgCol>
   <t:dgCol title="创建人" field="createuserid"   width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="mallProductRecommendController.do?del&id={id}" />
   <t:dgToolBar title="录入" icon="icon-add"  onclick="mallProductRecommendListModule.recommendview()"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="mallProductRecommendController.do?addorupdate" funname="update"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="mallProductRecommendController.do?addorupdate" funname="detail"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>